#!/bin/bash

echo "开始发布"

# step-1 修改基础路径
# exec -c ./bin/xxx -f config/xxx.conf

node $(cd `dirname $0`; pwd )"/inner/step1-update-path.js"


# REM step-2 编译
# call  %~dp0/inner/step2-build.bat
npm run build 

#REM step-3 发布gitee
# call  %~dp0/inner/step3-publish.bat
bash $(cd `dirname $0`; pwd )"/inner/step3-publish.sh"

 
# sudo node $(cd `dirname $0`; pwd )"/inner/step4-gh-page-refresh.js"
echo "打开 https://gitee.com/xkcyy/blog/pages#git-footer-main ，更新gitee的page服务"